package com.mvc4g.example.client;

import com.mvc4g.client.ActionInterface;
import com.mvc4g.client.Controller;

public class DigitAction implements ActionInterface, Constants {

	private CalculatorModel model = CalculatorModel.getUniqueInstance();

	@Override
	public void execute(Controller controller, Object form) {
		String value = model.enterNumber((Integer) form);
		((CalculatorView) controller.getView("mainView")).setScreen(value);
	}

}
